﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using AbpLearningDemo.DataModels;

namespace AbpLearningDemo.Companies.Dto
{
    [AutoMapTo(typeof(Company))]
    public class CompanyEditDto : EntityDto<Guid>
    {
        /// <summary>
        /// 企业名称
        /// </summary>
        [Required]
        [MaxLength(Company.MaxNameLength)]
        public string Name { get; set; }

        /// <summary>
        /// 企业电话
        /// </summary>
        [MaxLength(Company.MaxPhoneLength)]
        public string Phone { get; set; }

        /// <summary>
        /// 企业地址
        /// </summary>
        [MaxLength(Company.MaxAddressLength)]
        public string Address { get; set; }

        /// <summary>
        /// 企业简介
        /// </summary>
        [MaxLength(Company.MaxIntroductionLength)]
        public string Introduction { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        public bool IsActive { get; set; }
    }
}
